package com.l.web.service.webcontent;

import com.l.web.service.ServiceSupport;
import com.l.web.service.ControllerSupport;

public class WebContentController extends ControllerSupport {

    public WebContentController() {
    }

    public String execute() {
        ServiceSupport service;

        switch (act) {
            case "add":
                service = getService("WebContentAddService");
                break;
            case LIST:
                service = getService("WebContentListService");
                break;
            case REMOVE:
                service = getService("WebContentRemoveService");
                break;
            case DETAIL:
                service = getService("WebContentDetailService");
                break;
            default:
                service = getService("WebContentService");
        }

        String result = service.execute();
        return result;
    }

}
